<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>DWR Dev</title>
        <script type="text/javascript" src="/springmaven/dwr/engine.js"></script>
        <script type="text/javascript" src="/springmaven/dwr/util.js"></script>
        <script type="text/javascript" src="/springmaven/interface/dwrService.js"></script>
 
        <script>
            function getDataFromServer() {
              dwrService.getAddress({
                callback: getDataFromServerCallBack
              });
            }
 
            function getDataFromServerCallBack(dataFromServer) {
              alert(dwr.util.toDescriptiveString(dataFromServer, 3));
            }
        </script>
    </head>
    <body>
        <h3> 3.x/Spring 3.x with Annotations and Spring MVC</h3>
        <a href="#" onclick="getDataFromServer(); return false;">Retrieve test data</a><br/>
    </body>
</html>